//
//  MainTopicExprieCellTableViewCell.m
//  ZITHER
//
//  Created by 吴凡 on 2019/2/22.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "MainTopicExprieCellTableViewCell.h"

@implementation MainTopicExprieCellTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectZero] ;
        titleLabel.text = @"已关闭的话题";
        titleLabel.textColor = [UIColor colorWithHex:@"#666666"];
        titleLabel.font = [UIFont systemFontOfSize:12];
        titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:titleLabel];
        UIView *leftLine = [UIView new];
        leftLine.backgroundColor = [UIColor colorWithHex:@"#EEEEEE"];
        [self.contentView addSubview:leftLine];
        UIView *rightLine = [UIView new];
        rightLine.backgroundColor = [UIColor colorWithHex:@"#EEEEEE"];
        [self.contentView addSubview:rightLine];
        
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.contentView);
        }];
        [leftLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(0.5);
            make.left.equalTo(self.contentView.mas_left).offset(15);
            make.right.equalTo(titleLabel.mas_left).offset(-25);
        }];
        [rightLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.height.mas_equalTo(0.5);
            make.right.equalTo(self.contentView.mas_right).offset(-15);
            make.left.equalTo(titleLabel.mas_right).offset(25);
        }];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
